<?php

namespace app\index\controller;

use app\common\model\PageConfigModel;
use think\App;
use think\Controller;

class Index extends Controller
{
    public function index()
    {
        //获取配置
        $config = PageConfigModel::column(PageConfigModel::VALUE, PageConfigModel::NAME);
        $this->assign([
            'logo' => $config['logo'],
            'pageTitle' => $config['page_title'],
        ]);
        return $this->fetch();
    }


    public function shopList()
    {
        //获取配置
        $config = PageConfigModel::column(PageConfigModel::VALUE, PageConfigModel::NAME);
        $this->assign([
            'config' => $config,
        ]);
        return $this->fetch();
    }

    public function shopDetail()
    {
        //获取配置
        $config = PageConfigModel::column(PageConfigModel::VALUE, PageConfigModel::NAME);
        $this->assign([
            'config' => $config,
        ]);
        return $this->fetch();
    }
}
